<!-- pre header -->
{? if $username|strlen > 0 ?}
	{? assign var=has_signin value=true ?}
{? else ?}
	{? assign var=has_signin value=false ?}
{? /if ?}
<div id="pre_header">
	<div class="sign" {? if $has_signin ?}style="display:none;"{? /if ?}>
		<a id="signin" href="/soj/php/account/signin.php" >Sign in</a>
	</div>

	<div class="sign" {? if !$has_signin ?}style="display:none;"{? /if ?}>
		<a id="signout" href="/soj/php/account/do_signout.php">Sign out</a>
	</div>
	
	<div class="username">
		Welcome 
			{? if !$has_signin ?}
				, Guest 
			{?else?}
				back , <a href="/soj/php/account/user_information.php?username={? $username ?}">{? $username ?}</a>
			{? /if ?}
			<span class='slash'>/</span>   
	</div>

</div>
